<template>
	<view class="uni_box home">
		<navbar title='发布悬赏'>
		</navbar>
		<view class="content">
			<view class="leiview" @click="mpshow=true">
				<view class="leiitem">
					<view class="shu"></view>
					<text class="name">项目类型<text class="xing">*</text></text>
					<view class="leiitem ml">
						<text class="xuan">{{ mpinfo.label?mpinfo.label:'请选择' }}</text>
						<image class="nav_icon_back" src="/static/img/nav_icon_back.png"></image>
					</view>
				</view>
			</view>
			<view class="leiview">
				<view class="leiitem oneitem">
					<view class="shu"></view>
					<text class="name">项目名称</text>
				</view>
				<view class="leiitem twoinput">
					<u-input v-model="mpfabu.title" type="text" :border="false" placeholder="请输入"/>
				</view>
			</view>
			<view class="leiview">
				<view class="leiitem oneitem">
					<view class="shu"></view>
					<text class="name">任务标签</text>
				</view>
				<view class="renview">
					<view class="renitem">
						<view class="biaoqian" v-for="(item,index) in mpfabu.tags" :key="index">
							<text class="biaoname">{{item}}</text>
							<image class="facha" src="/static/img/facha.png" @click="deltag(index)"></image>
						</view>
					</view>
					<image class="fajia" src="/static/img/fajia.png" @click="tagadd"></image>
				</view>
			</view>
			<view class="leiview" v-if="id == ''">
				<view class="leiitem">
					<view class="shu"></view>
					<text class="name">任务数量</text>
					<view class="leiitem ml">
						<u-number-box :min="1" v-model="mpfabu.count" @change="valChange"></u-number-box>
					</view>
				</view>
			</view>
			<view class="leiview" v-if="id == ''">
				<view class="leiitem">
					<view class="shu"></view>
					<text class="name">单次佣金</text>
					<view class="leiitem ml">
						<u-input v-model="mpfabu.price" @input="pinput" type="text" input-align="right" :border="false" placeholder="请输入"/>
						<text class="yuan">元</text>
					</view>
				</view>
			</view>
			<!-- <view class="leiview" @click="rilishow=true">
				<view class="leiitem">
					<view class="shu"></view>
					<text class="name">审核时间</text>
					<view class="leiitem ml">
						<text class="xuan">请选择</text>
						<image class="nav_icon_back" src="/static/img/nav_icon_back.png"></image>
					</view>
				</view>
			</view>
			<view class="leiview" @click="rilishow=true">
				<view class="leiitem">
					<view class="shu"></view>
					<text class="name">完成时间</text>
					<view class="leiitem ml">
						<text class="xuan">请选择</text>
						<image class="nav_icon_back" src="/static/img/nav_icon_back.png"></image>
					</view>
				</view>
			</view> -->
			<view class="leiview">
				<view class="leiitem oneitem">
					<view class="shu"></view>
					<text class="name">审核时间</text>
				</view>
				<view class="leiitem twoinput">
					<u-input v-model="mpfabu.shenhe_min" type="number" :border="false" placeholder="请输入"/>
					<text class="yuan">分</text>
				</view>
			</view>
			<view class="leiview">
				<view class="leiitem oneitem">
					<view class="shu"></view>
					<text class="name">完成时间</text>
				</view>
				<view class="leiitem twoinput">
					<u-input v-model="mpfabu.end_min" type="number" :border="false" placeholder="请输入"/>
					<text class="yuan">分</text>
				</view>
			</view>
			<view class="leiview">
				<view class="leiitem">
					<view class="shu"></view>
					<text class="name">添加图片</text>
					<text class="zuiduo">最多1张，封面显示。封面尺寸：240*240</text>
				</view>
				<view class="leiitem col buviewtwo">
					<view class="tuview">
						<view class="tuitem" @click="upload(1)" v-if="mpfabu.image.length<1">
							<image class="addtu" src="/static/img/btn_tupian.png"></image>
						</view>
						<view class="tuitem" v-for="(item,index) in mpfabu.image" :key="index">
							<view class="cha" @click="del(1,index)">
								<image class="shanicon" src="/static/img/shanicon.png"></image>
							</view>
							<image class="addtu" :src="item"></image>
						</view>
					</view>
				</view>
			</view>
			<view class="leiview">
				<view class="leiitem oneitem">
					<view class="shu"></view>
					<text class="name">描述</text>
					<!-- <text class="zuiduo hong">禁止发布黄赌毒、资金盘、诈骗等违规违法内容</text> -->
				</view>
				<view class="leiitem twoinput">
					<u-input v-model="mpfabu.descript" type="textarea"  maxlength="10000" :border="false" placeholder="请输入"/>
				</view>
				
			</view>
			<view class="leiview">
				<view class="leiitem oneitem">
					<view class="shu"></view>
					<text class="name">温馨提示</text>
					<!-- <text class="zuiduo hong">禁止发布黄赌毒、资金盘、诈骗等违规违法内容</text> -->
				</view>
				<view class="leiitem twoinput">
					<u-input v-model="mpfabu.tip_content" type="textarea"  maxlength="10000" :border="false" placeholder="请输入"/>
				</view>
				
			</view>
			<view class="leiview">
				<view class="leiitem oneitem">
					<view class="shu"></view>
					<text class="name">推广教程</text>
					<!-- <text class="zuiduo hong">禁止发布黄赌毒、资金盘、诈骗等违规违法内容</text> -->
				</view>
				<view class="leiitem twoinput">
					<u-input v-model="mpfabu.tg_content" type="textarea"  maxlength="10000" :border="false" placeholder="请输入"/>
				</view>
				
			</view>
			<view class="leiview">
				<view class="leiitem">
					<view class="shu"></view>
					<text class="name">任务步骤</text>
				</view>
				<view class="leiitem col buview" v-for="(item,index) in mpfabu.step_json">
					<text class="buzhou">步骤{{ index+1 }}</text>
					<view class="wenben">
						<u-input v-model="item.name" type="textarea"  maxlength="10000" :border="false" placeholder="请输入"/>
					</view>
					<view class="tuview">
						<view class="tuitem" @click="uploadtwo(2,index)" v-if="item.value.length<1">
							<image class="addtu" src="/static/img/btn_tupian.png"></image>
						</view>
						<view class="tuitem" v-for="(i,ind) in item.value" :key="index">
							<view class="cha" @click="deltwo(2,index,ind)">
								<image class="shanicon" src="/static/img/shanicon.png"></image>
							</view>
							<image class="addtu" :src="i"></image>
						</view>
					</view>
				</view>
				<view class="addbuzhou" @click="addstep">
					+ 添加步骤
				</view>
			</view>

			<view class="leiview">
				<view class="leiitem">
					<view class="shu"></view>
					<text class="name">申请参数</text>
				</view>
				<view class="leiitem buviewtwo" v-for="(item,index) in mpfabu.apply_json" :key="index">
					<text class="buzhou">{{ index+1 }}</text>
					<view class="shenitem" @click="getlei(1,index)">
						<text class="xuantit" v-if="item.type =='1'">输入框</text>
						<text class="xuantit" v-else-if="item.type =='2'">图片选择</text>
						<text class="xuantit" v-else-if="item.type =='3'">地区选择</text>
						<text class="xuantit" v-else-if="item.type =='4'">时间选择</text>
						<text class="xuantit xhui" v-else>请选择类型</text>
						<image class="nav_icon_back" src="/static/img/nav_icon_back.png"></image>
					</view>
					<view class="shenitem shentwo">
						<u-input v-model="item.name" type="text" input-align="left" :border="false" placeholder="请输入参数"/>
					</view>
				</view>
				<view class="addbuzhou" @click="addapply(1)" style="margin-top: 30rpx;">
					+ 追加
				</view>
			</view>
			<view class="leiview">
				<view class="leiitem">
					<view class="shu"></view>
					<text class="name">提交参数</text>
				</view>
				<view class="leiitem buviewtwo" v-for="(item,index) in mpfabu.add_json" :key="index">
					<text class="buzhou">{{ index+1 }}</text>
					<view class="shenitem" @click="getlei(2,index)">
						<text class="xuantit" v-if="item.type =='1'">输入框</text>
						<text class="xuantit" v-else-if="item.type =='2'">图片选择</text>
						<text class="xuantit" v-else-if="item.type =='3'">地区选择</text>
						<text class="xuantit" v-else-if="item.type =='4'">时间选择</text>
						<text class="xuantit xhui" v-else>请选择类型</text>
						<image class="nav_icon_back" src="/static/img/nav_icon_back.png"></image>
					</view>
					<view class="shenitem shentwo">
						<u-input v-model="item.name" type="text" input-align="left" :border="false" placeholder="请输入参数"/>
					</view>
				</view>
				<view class="addbuzhou" @click="addapply(2)" style="margin-top: 30rpx;">
					+ 追加
				</view>
			</view>
		</view>

		<view class="botview" v-if="id==''">
			<text class="jinprice">支付金额：<text class="jinnum">{{ price }}</text></text>
			<view class="lianxi" :style="{
				background: zhucolor
			}" @click="shenqing">
				申请推广
			</view>
		</view>
		<view class="botview" v-if="id!=''">
			<view class="lianxi" :style="{
				background: zhucolor
			}" @click="shenqing">
				确定修改
			</view>
		</view>

		<!-- 时间选择 -->
		<u-calendar v-model="rilishow" :mode="mode" @change="richange"></u-calendar>
		<u-select v-model="leishow" :list="leilist" @confirm="confirm"></u-select>

		<!-- 添加标签 -->
		<view class="pop">
			<u-popup v-model="bqshow" mode="center" @close="popclose(1)" width="82%" :closeable="true" z-index="1000">
				<view class="yhpop">

					<text class="yhtit">
						添加标签
					</text>
					<view class="pinput">
						<u-input v-model="popbiao" type="text" :border="false" placeholder="请输入"/>
					</view>
					<view class="quxiaoview">
						<view class="popquview" @click="popclose(1)">取消</view>
						<view class="popquview quebtn" @click="popbtn(1)">确认</view>
					</view>
				</view>
			</u-popup>
		</view>
		<u-select v-model="mpshow" :list="mplist" @confirm="mpconfirm"></u-select>
	</view>
</template>

<script>
import {
		baseUrl
	} from '@/utils/config.js';
import { type } from 'os';
	export default {
		data() {
			return {
				phone:"",
				value: 0,
				mode:'date',
				rilishow:false,
				zhucolor: uni.getStorageSync('zhu_color'),
				leishow:false,
				leilist:[
					{
						value: '1',
						label: '输入框'
					},
					{
						value: '2',
						label: '图片选择'
					},
					{
						value: '3',
						label: '地区选择'
					},
					{
						value: '4',
						label: '时间选择'
					}
				],
				price:0,
				mpfabu:{
					cid:'',//类型id
					title:'',
					count:1,//任务数
					tags:[],//标签
					shenhe_min:'',
					end_min:'',
					apply_json:[
						{type:'',value:'',name:''}
					],//申请参数
					add_json:[
						{type:'',value:'',name:''}
					],//提交参数
					step_json:[
						{type:'2',value:[],name:''}
					],//步骤
					image:[],//图片

					tip_content:'',//温馨提示
					tg_content:'',//推广教程

					price:0,//单次佣金
					descript:'',
					// postion_id:'',//位置id
				},
				mplist:[],//名片类型
				mpinfo:{},//名片类型选择
				mpshow:false,
				bqshow:false,
				popbiao:'',
				updatetype:1,//1头像 2二维码 3示例图
				headimg:'',
				bindex:0,
				leitan:1,//1就是申请参数 2提交参数
				leiindex:0,
				info:{},
				id:'',
				type:'task',
				newinfo:{}
			}
		},
		onLoad(option) {
			
			// this.fcardgetInit();//悬赏配置
			this.getuserinfo();
			this.getcardgetCate()
			if(option.id){
				this.id = option.id
				
			}
		},
		onShow() {
		},
		methods: {
			async huixian(){
				let res = await this.$u.api.getEdit({
					id:this.id,
					type:this.type
				});
				this.newinfo = res

				//回显
				let mplist = this.mplist
				for(let i in mplist){
					if(mplist[i].value == this.newinfo.cid){
						this.mpinfo.label = mplist[i].label
						this.mpinfo.value = mplist[i].value
					}
				}
				console.log(this.mpinfo.label)
				this.mpfabu.cid = this.newinfo.cid
				this.mpfabu.title = this.newinfo.title
				
				if(this.newinfo.tags){
					let arr = this.newinfo.tags.split(",");
					this.mpfabu.tags = arr
				}
				
				this.mpfabu.count = this.newinfo.count
				this.mpfabu.price = this.newinfo.price
				this.mpfabu.shenhe_min = this.newinfo.shenhe_min
				this.mpfabu.end_min = this.newinfo.end_min

				if(this.newinfo.image){
					let arrimage = this.newinfo.image.split(",");
					for(let i in arrimage){
						arrimage[i] = arrimage[i]
					}
					this.mpfabu.image = arrimage
				}
				this.mpfabu.descript = this.newinfo.descript
				this.mpfabu.tip_content = this.newinfo.tip_content
				this.mpfabu.tg_content = this.newinfo.tg_content
				if(this.newinfo.step_json){
					let step_jsonnew = this.newinfo.step_json
					for(let i in step_jsonnew){
						if(step_jsonnew[i].value&&step_jsonnew[i].type == 2){
							let stepimage = step_jsonnew[i].value.split(",");
							step_jsonnew[i].value = stepimage
						}
					}
					this.mpfabu.step_json = step_jsonnew
				}
				
				this.mpfabu.apply_json = this.newinfo.apply_json
				this.mpfabu.add_json = this.newinfo.add_json
				this.gettotal();//计算总价
				this.$forceUpdate()
			},
			async getcardgetCate(){
				let res = await this.$u.api.taskgetCate({
				});
				let shuzu = res
				for(let i in shuzu){
					shuzu[i].label = shuzu[i].name
					shuzu[i].value = shuzu[i].id
				}
				this.mplist = shuzu
				if(this.id){
					this.huixian();//回显数据
				}

			},
			async getuserinfo(){
				let res = await this.$u.api.usergetData({
				});
				this.info = res
				// this.user = res.user
			},
			async fcardgetInit(){
				let res = await this.$u.api.taskgetInit({
				});
				this.price = res.price
				// this.mpfabu.price = res.price
			},
			gettotal(){
				//计算价格
				this.price = (Number(this.mpfabu.count)*Number(this.mpfabu.price)).toFixed(2)
			},
			valChange(e) {
				console.log('当前值为: ' + e.value)
				this.gettotal();//计算总价
			},
			pinput(e){//佣金输入
				this.gettotal();//计算总价
			},
			richange(e){
			},
			getlei(e,index){
				//点击选择类型
				this.leitan = e
				this.leiindex = index
				this.leishow = true
			},
			confirm(e){
				// console.log(e[0].value)
				let mpfabu = this.mpfabu
				if(this.leitan == 1){
					//申请参数
					mpfabu.apply_json[this.leiindex].type = e[0].value
				}else if(this.leitan == 2){
					//提交参数
					mpfabu.add_json[this.leiindex].type = e[0].value
				}
				this.mpfabu = mpfabu
				this.$forceUpdate()
			},
			async bianji(){
				//编辑

			},
			async shenqing(){
				
				console.log(this.mpfabu)

				let parms = JSON.parse(JSON.stringify(this.mpfabu))
				// data =  JSON.parse(JSON.stringify(infolist))
				parms.image = parms.image.toString()
				parms.tags = parms.tags.toString()
				for(let i in parms.step_json){
					parms.step_json[i].value = parms.step_json[i].value.toString()
				}
				console.log(JSON.stringify(parms))

				let status = true
				for(let i in parms){
					if(parms[i] == ''){
						status = false
					}
				}
				// if(!status){
				// 	this.$u.toast("请先完善信息");
				// 	return false
				// }

				if(this.id != ''){
					parms.id = this.id
					parms.type = this.type
				}

				// return false;
				// if(Number(this.price)>Number(this.info.money)){
				// 	this.$u.toast("余额不足 请先进行充值");
				// 	setTimeout(() => {
				// 		this.navrouter("/pages_subject/twoPage/Chuzhi");
				// 	}, 1000);
				// 	return false;
				// }
				if(this.id == ''){
					let res = await this.$u.api.taskadd(parms);
					this.$u.toast("操作成功");
					setTimeout(() => {
						uni.navigateBack()
					}, 1000);
				}else{
					let res = await this.$u.api.doEdit(parms);
					this.$u.toast("编辑成功");
					setTimeout(() => {
						uni.navigateBack()
					}, 1000);
				}
				
			},
			
			tagadd(){
				this.bqshow = true
				this.popbiao = ''
			},
			popclose(e){
				if(e == 1){
					this.bqshow = false
				}
			},
			popbtn(e){
				if(e == 1){
					if(!this.popbiao){
						this.$u.toast("请输入内容");
						return false;
					}
					let tags = this.mpfabu.tags
					tags.push(this.popbiao)
					this.mpfabu.tags = tags
					this.popbiao = ''
					this.bqshow = false
					this.$u.toast("添加成功");
				}
			},
			deltag(index){
				let tags = this.mpfabu.tags
				tags.splice(index,1)
				this.$u.toast("移除成功");
				this.mpfabu.tags = tags

			},
			upload(e) {
				this.updatetype = e
				uni.chooseImage({
					count: 1,
					success: (chooseImageRes) => {
						const tempFilePaths = chooseImageRes.tempFilePaths;
						this.headimg = tempFilePaths[0];
						// this.isClick = true;
						this.unloadtou()
						// this.getavatar();//修改信息
					}
				});
			},
			uploadtwo(e,index) {
				this.updatetype = e
				this.bindex = index
				uni.chooseImage({
					count: 1,
					success: (chooseImageRes) => {
						const tempFilePaths = chooseImageRes.tempFilePaths;
						this.headimg = tempFilePaths[0];
						// this.isClick = true;
						this.unloadtou()
						// this.getavatar();//修改信息
					}
				});
			},
			unloadtou(){
				// console.log(this.head_portrait)
				let that = this
				uni.uploadFile({
					// url: baseUrl + '/api/uploadImage', //仅为示例，非真实的接口地址
					url: baseUrl + '/common/upload', //仅为示例，非真实的接口地址
					filePath: this.headimg,
					name: 'file',
					header: {
						// 'content-type': 'application/json;charset=UTF-8',
						'token':uni.getStorageSync('token'),
					},
					formData: {
						'token':uni.getStorageSync('token'),
					},
					success: (uploadFileRes) => {
						// console.log( JSON.parse(uploadFileRes.data).data);
						let mpfabu = that.mpfabu
						if(that.updatetype==1){
							//图片
							mpfabu.image.push(JSON.parse(uploadFileRes.data).data.fullurl)
						}else if(that.updatetype==2){
							//步骤图片
							mpfabu.step_json[that.bindex].value.push(JSON.parse(uploadFileRes.data).data.fullurl)
							// mpfabu.qrcode.push(JSON.parse(uploadFileRes.data).data.fullurl)
						}else if(that.updatetype==3){
							//示例图
							mpfabu.images.push(JSON.parse(uploadFileRes.data).data.fullurl)
						}
					}
				});
			},
			del(type,index){
				let mpfabu = this.mpfabu
				if(type == 1){
					mpfabu.image.splice(index,1)
				}else if(type ==2){
					mpfabu.qrcode.splice(index,1)
				}else if(type ==3){
					mpfabu.images.splice(index,1)
				}
				this.mpfabu = mpfabu
			},
			deltwo(type,index,ind){
				let mpfabu = this.mpfabu
				if(type ==2){
					mpfabu.step_json[index].value.splice(ind,1)
				}else if(type ==3){
					mpfabu.images.splice(index,1)
				}
				this.mpfabu = mpfabu
			},
			addstep(){
				//添加步骤
				let mpfabu = this.mpfabu
				let a ={}
				a.type = '2'
				a.value = []
				a.name = ''
				mpfabu.step_json.push(a)
				this.mpfabu = mpfabu
				console.log(this.mpfabu)
				this.$forceUpdate()
			},
			addapply(e){

				//追加申请
				let mpfabu = this.mpfabu
				let a ={}
				a.type = ''
				a.value = ''
				a.name = ''
				if(e == 1){
					mpfabu.apply_json.push(a)
				}else if(e == 2){
					mpfabu.add_json.push(a)
				}
				
				this.mpfabu = mpfabu
				console.log(this.mpfabu)
				this.$forceUpdate()
			},
			mpconfirm(e){
				console.log(e)
				this.mpinfo.label = e[0].label
				this.mpinfo.value = e[0].value
				this.mpfabu.cid = e[0].value
			},
		}
	}
</script>

<style lang="scss" scoped>
	page{
		background-color: #fff;
	}
	.content{
		min-height: 100vh;
		background-color: #f5f5f5;
		padding: 20rpx 0 150rpx;
		.leiview{
			margin-bottom: 20rpx;
			display: flex;
			flex-direction: column;
			background-color: #fff;
			padding:25rpx 30rpx;
			.yuan{
				font-family: PingFang SC;
				font-weight: 500;
				font-size: 30rpx;
				color: #333333;
				display: inline-block;
				margin-left: 30rpx;
			}

			.leiitem{
				display: flex;
				flex-direction: row;
				align-items: center;
		        .name{
					font-family: PingFang SC;
					font-weight: bold;
					font-size: 30rpx;
					color: #444444;
				}
			}
			.zuiduo{
				font-weight: 500;
				font-size: 24rpx;
				color: #999999;
				display: inline-block;
				margin-left: 10rpx;
			}
			.col{
				display: flex;
				flex-direction: column;
				align-items: flex-start;

			}
			.buzhou{
				font-weight: bold;
				font-size: 28rpx;
				color: #444444;
			}
			.buview{
				margin-top: 20rpx;
				border-bottom: 1rpx solid #eee;
				margin-bottom: 20rpx;
				padding-bottom: 15rpx;
			}
			.buview:last-child{
				// border-bottom: none;
			}
			.buviewtwo{
				// margin-top: 20rpx;
				border-bottom: 1rpx solid #eee;
				// margin-bottom: 20rpx;
				// padding-bottom: 10rpx;
				padding: 15rpx 0;
			}
			.tuview{
				display: flex;
				flex-direction: row;
				flex-wrap: wrap;
				// margin-top: 30rpx;
				.tuitem{
					width: 200rpx;
					height: 200rpx;
					position: relative;
					border-radius: 10rpx;
					margin: 0 20rpx 20rpx 0;
					.addtu{
						position: absolute;
						width: 100%;
						height: 100%;
						border-radius: 10rpx;
					}
					.cha{
						background-color: rgba(0, 0, 0, 0.4);
						position: absolute;
						width: 100%;
						height: 100%;
						display: flex;
						align-items: center;
						justify-content: center;
						border-radius: 10rpx;
						z-index: 10;
						text{
							font-family: PingFang SC;
							font-weight: 500;
							font-size: 24rpx;
							color: #FFFFFF;
						}
						.shanicon{
							position: relative;
							width: 50rpx;
							height: 50rpx;
							// right: 20rpx;
							// top: 20rpx;
						}
					}
				}
			}
			
			.shenitem{
				// width: 40%; 
				flex: 1;
				padding: 20rpx 20rpx;
				border: 1rpx solid #eee;
				border-radius: 20rpx;
				margin:0 30rpx;
				display: flex;
				flex-direction: row;
				align-items: center;
				.xuantit{
					color: #333;
					font-size: 28rpx;
					font-weight: 400;
				}
				.xhui{
					color: #c0c4cc;
				}
				.nav_icon_back{
					margin-left: auto;
				}
			}
			.shentwo{
				padding: 5rpx 20rpx;
			}

			.wenben{
				background: #F5F5F5;
				border-radius: 20rpx;
				padding: 30rpx;
				width: 100%;
				margin: 20rpx 0;
			}
			.renview{
				display: flex;
				flex-direction: column;
				.renitem{
					display: flex;
					flex-direction: row;
					align-items: center;
					flex-wrap: wrap;
					.biaoqian{
						padding: 13rpx 19rpx;
						background: #EEEEEE;
						border-radius: 10rpx;
						display: flex;
						flex-direction: row;
						align-items: center;
						margin: 0 15rpx 15rpx 0;
						position: relative;
						.boitem{
							position: absolute;
							width: 100%;
							height: 100%;

						}
						.facha{
							width: 24rpx;
							height: 24rpx;
							margin-left: 13rpx;
						}
						.biaoname{
							font-weight: 500;
							font-size: 28rpx;
							color: #666666;
							position: relative;
						}
					}
				}
				.fajia{
					width: 116rpx;
					height: 52rpx;
					margin-top: 20rpx;
				}
			}
			.oneitem{
				margin-bottom: 20rpx;
			}
			.shu{
				display: inline-block;
				width: 8rpx;
				height: 30rpx;
				background: linear-gradient(90deg, #0DBFFB, #198EFF);
				margin-right: 7rpx;
			}
			.twoinput{
				background: #F8F8F8;
				border-radius: 6rpx;
				padding: 10rpx 20rpx;
			}
			.xuan{
				font-weight: bold;
				font-size: 30rpx;
				color: #0DBEFB;
			}
			.nav_icon_back{
				margin-left: 20rpx;
				width: 24rpx;
				height: 24rpx;
			}
			.addbuzhou{
				display: flex;
				align-items: center;
				justify-content: center;
				padding: 10rpx 20rpx;
				border-radius: 10rpx;
				border: 2rpx solid #EBEBEB;
				margin-left: auto;
				font-weight: 500;
				font-size: 30rpx;
				color: #444444;
			}
		}
	}
	.ml{
		margin-left: auto;
	}

	.botview {
	height: 120rpx;
	background: #FFFFFF;
	width: 100%;
	position: fixed;
	bottom: 0;
	display: flex;
	flex-direction: row;
	align-items: center;
	z-index: 10;
	border-top: 1rpx solid #eee;
	padding: 30rpx;


	.botleft {
		width: 20%;
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;

		.icon_fenxiang {
			width: 44rpx;
			height: 44rpx;

		}

		text {
			font-size: 18rpx;
			font-family: PingFang SC;
			font-weight: 400;
			color: #333333;
		}
	}

	.jinprice{
		font-weight: bold;
		font-size: 30rpx;
		color: #444444;
	}
	.jinnum{
		color: #F11B1B;
		font-size: 35rpx;
	}
	.lianxi {
		margin-left: auto;
		width: 240rpx;
		height: 88rpx;
		background: linear-gradient(-82deg, #4BB6F0, #1D8DFD);
		border-radius: 44rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		font-weight: 500;
		font-size: 28rpx;
		color: #FFFFFF;
	}
}
.xing{
	font-weight: bold;
	font-size: 30rpx;
	color: #FB1515;
	display: inline-block;
	margin-left: 6rpx;
}
	
.yhpop{
	border-radius: 24rpx;
	padding: 40rpx;
	background-color: #fff;
	.yhtit{
		display: block;
		text-align: center;
		font-family: PingFang SC;
		font-weight: bold;
		font-size: 32rpx;
		color: #333333;
		margin-bottom: 45rpx;
	}
	.pinput{
		background: #F5F5F5;
		border-radius: 10rpx;
		padding:10rpx 20rpx;
		margin-bottom: 20rpx;
		display: flex;
		flex-direction: row;
		align-items: center;
		
	}
	.sjhao{
		display: block;
		font-weight: bold;
		font-size: 28rpx;
		color: #333333;
		margin-bottom: 20rpx;
	}
	.huoqu{
		margin-left: 20rpx;
		font-family: PingFang SC;
		font-weight: 500;
		font-size: 28rpx;
		color: #496EE7;
	}
	.quxiaoview{
		display: flex;
		flex-direction: row;
		margin-top: 40rpx;
		justify-content: space-between;
		width: 100%;
		.popquview{
			height: 68rpx;
			border-radius: 35rpx;
			border: 1rpx solid #111111;
			display: flex;
			align-items: center;
			justify-content: center;
			width: 48%;
		}
		.quebtn{
			background: linear-gradient(-82deg, #4BB6F0, #1D8DFD);
			color: #fff;
			border: none;
		}
	}
}
</style>
